﻿using Rbac.Project.Application.Menus.Dto;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Rbac.Project.Application.Menus
{
    public interface IMenuService
    {
        /// <summary>
        /// 菜单节点显示
        /// </summary>
        /// <returns></returns>
        Task<ResultDto<List<TreeDto>>> GetTreeNodes();
        /// <summary>
        /// 菜单添加
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ResultDto<bool>> InsertAsync(CreateUpdateDto dto);

        /// <summary>
        /// 获取当前登录用户的菜单信息
        /// </summary>
        /// <returns></returns>
        Task<ResultDto<List<MenuDto>>> GetMenu();
    }
}